
<!DOCTYPE stylesheet [
	<!ENTITY nbsp '&#160;'>
]>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

	<xsl:template match="/grid">

		<table border="0" cellspacing="0" cellpadding="1" id="table_{@id}" class="{@class}">

			<thead>
				<!-- Header -->
				<tr>
					<xsl:for-each select="header/column">
						<th>
							<xsl:value-of select="current()"/>
						</th>
					</xsl:for-each>
				</tr>
			</thead>

			<tbody>
				<xsl:for-each select="row[column]">
					<tr class="{@class}">
						<!-- Columnas -->
						<xsl:for-each select="column">
							<td class="{@class}">
								<xsl:value-of select="current()"/>
							</td>
						</xsl:for-each>
					</tr>
				</xsl:for-each>
			</tbody>

		</table>

	</xsl:template>

</xsl:stylesheet>